﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace QuanLyDiemSV
{
    public partial class XemKetQuaHocTap : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["kqhoctapsv"] != null)
            {

                Label4.Text = BUS.XemKetQuaHocTap_BUS.HienThiTen(Session["kqhoctapsv"].ToString());
                Label5.Text = Session["kqhoctapsv"].ToString();
                Label6.Text = BUS.XemKetQuaHocTap_BUS.HienThiLop(Session["kqhoctapsv"].ToString());
                BUS.XemKetQuaHocTap_BUS.HienThiTen(Session["kqhoctapsv"].ToString());
                DataTable dt = new DataTable();
                dt = BUS.XemKetQuaHocTap_BUS.XemKetQuaHocTap(Session["kqhoctapsv"].ToString());
                GridView1.DataSource = dt;
                GridView1.DataBind();
                Session["kqhoctapsv"]=null;
            }
            else
            {
                Label1.Visible = false;
                Label2.Visible = false;
                Label3.Visible = false;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Visible = true;
            Label2.Visible = true;
            Label3.Visible = true;
            Label4.Text = BUS.XemKetQuaHocTap_BUS.HienThiTen(TextBox1.Text);
            Label5.Text = TextBox1.Text;
            Label6.Text = BUS.XemKetQuaHocTap_BUS.HienThiLop(TextBox1.Text);
            BUS.XemKetQuaHocTap_BUS.HienThiTen(TextBox1.Text);
            DataTable dt = new DataTable();
            dt = BUS.XemKetQuaHocTap_BUS.XemKetQuaHocTap(TextBox1.Text);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }
    }
}